package org.scau.studentevaluation.client;

import org.scau.studentevaluation.entity.query.GetOtherActQuery;
import org.scau.studentevaluation.entity.vo.OtherActVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.Valid;
import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName: OtherActClient
 * @Description: TODO
 * @Author: sunslikes
 * @Date: 2020/9/4 3:31
 * @Version: 1.0
 */
@FeignClient(value = "eureka-client-otheract", fallback = OtherActClientHystrix.class)
@Validated
public interface OtherActClient {
    /**
     * 	通过studentId、other_activity_year、is_passed从otheract中获取信息（通过feign调用other_act模块中获取其他活动2的方法）
     */
    @RequestMapping(value = "/otheract/getOtherActs", method = RequestMethod.GET)
    ArrayList<OtherActVO> getOtherActs(@RequestParam Long studentId, @RequestParam String otherActYear, @RequestParam Integer isPassed);
}
